package com.caishi.lkx.user.ienum.status;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author by keray
 * date:2019/8/6 18:12
 * 账号状态
 */
public enum UserStatus {
    //
    normal("正常", 0),
    lock("锁定", 1),
    off("注销", 2);
    @Getter
    final
    String desc;

    @EnumValue
    @Getter
    final
    Integer code;

    UserStatus(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }

}
